package com.ffyc.resale.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ffyc.resale.dao.CarouselDao;
import com.ffyc.resale.model.Carousel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CarouselService {
    @Autowired
    CarouselDao carouselDao;
    public List<Carousel> Carousel(){
        QueryWrapper<Carousel> queryWrapper = new QueryWrapper<>();

        List<Carousel> list = carouselDao.selectList(queryWrapper);
        return list;
    }

}
